package com.gdyx.app.web.util;

import com.gdyx.app.web.model.MpsFun;

import java.io.Serializable;
import java.util.List;

/**
 * Created by mac on 2017/6/17.
 */
public class MpsFunDto implements Serializable{
    private String id="";
    private String  name="";
    private String parent="";
    private String genre="";
    private String iconCls="";
    private boolean active=false;
    private String href="";
    private String target="";
    private String descr="";
    private long sort=99999;
    private int status=0;
    private String createTime="";
    private String createOwner="";
    private String modifyTime="";
    private String modifyOwner="";
    private List<MpsFunDto> children;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getParent() {
        return parent;
    }

    public void setParent(String parent) {
        this.parent = parent;
    }

    public boolean isActive() {
        return active;
    }

    public boolean getActive(){
        return active;
    }

    public void setActive(boolean active) {
        this.active = active;
    }

    public String getGenre() {
        return genre;
    }

    public void setGenre(String genre) {
        this.genre = genre;
    }

    public String geticonCls() {
        return iconCls;
    }

    public void seticonCls(String iconCls) {
        this.iconCls = iconCls;
    }

    public String getHref() {
        return href;
    }

    public void setHref(String href) {
        this.href = href;
    }

    public String getTarget() {
        return target;
    }

    public void setTarget(String target) {
        this.target = target;
    }

    public String getDescr() {
        return descr;
    }

    public void setDescr(String descr) {
        this.descr = descr;
    }

    public long getSort() {
        return sort;
    }

    public void setSort(long sort) {
        this.sort = sort;
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public String getcreateTime() {
        return createTime;
    }

    public void setcreateTime(String createTime) {
        this.createTime = createTime;
    }

    public String getcreateOwner() {
        return createOwner;
    }

    public void setcreateOwner(String createOwner) {
        this.createOwner = createOwner;
    }

    public String getmodifyTime() {
        return modifyTime;
    }

    public void setmodifyTime(String modifyTime) {
        this.modifyTime = modifyTime;
    }

    public String getmodifyOwner() {
        return modifyOwner;
    }

    public void setmodifyOwner(String modifyOwner) {
        this.modifyOwner = modifyOwner;
    }

    public List<MpsFunDto> getChildren() {
        return children;
    }

    public void setChildren(List<MpsFunDto> children) {
        this.children = children;
    }

    public void CopyValuesFromMpsFun(MpsFun item){
        this.setId(item.getId());
        this.setName(item.getName());
        this.setParent(item.getParent());
        this.seticonCls(item.getIconCls());
        this.setHref(item.getHref());
        this.setTarget(item.getTarget());
        this.setDescr(item.getDescr());
        this.setSort(item.getSort());
        this.setStatus(item.getStatus());
        this.setcreateOwner(item.getCreateOwner());
        this.setcreateTime(item.getCreateTime());
        this.setmodifyOwner(item.getModifyOwner());
        this.setmodifyTime(item.getModifyTime());
    }
}
